home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / prgtools / euphor13.zip / WHAT2DO.DOC < prev    next >
Text File  |  1995-05-18  |  4KB  |  99 lines

  1.         WHAT TO DO ?
  2.         ------------
  3.         
  4.  Now that you have read README.DOC and INSTALL.DOC, and you have installed 
  5.  Euphoria, here are some things you can try:
  6.  
  7.  * Run each of the demo programs in the demo directory. You just type ex
  8.    followed by the name of the .ex file to execute. e.g.
  9.  
  10.        ex buzz
  11.  
  12.    will run the file buzz.ex. (Depending on your graphics card you may have to 
  13.    edit a line in some of the .ex files to select a different graphics mode. 
  14.    Most demos will try to use SVGA modes. You need DOS mouse support to run
  15.    mouse.ex and ttt.ex).
  16.  
  17.    You can also double-click on a .ex file from Windows. You will have
  18.    to "associate" .ex files with ex.exe. A few of the demos are meant
  19.    to be run from the command line, but most will look ok from Windows.
  20.  
  21.  * Play the language wars game (demo\langwar\lw.ex). Start at the
  22.    novice level. It will take you a while to get used to the commands and
  23.    the directions. Can you defeat C++?
  24.  
  25.  * Generate some beautiful Mandelbrot pictures (demo\mset.ex). Zoom in on the 
  26.    interesting parts. Each picture is saved in a file so you don't have to
  27.    start from scratch each time.
  28.  
  29.  * Run demo\stereo.ex. Can you see a 3-D image?
  30.  
  31.  * Try to win at 3D TicTacToe. It can be done.
  32.  
  33.  * Use the Euphoria editor, ed, to edit a .e or .ex file. Notice the
  34.    use of colors. Is the gray text too faint? - then change NORMAL_COLOR
  35.    to BLACK. Set the other "user-modifiable" parameters at the
  36.    top of bin\ed.ex to suit your taste. Use  Esc q  to quit the editor 
  37.    or  Esc h  for help.
  38.  
  39.  * Try the benchmarks in demo\bench. Do you get the same ratios as we did
  40.    in comparison with QBasic? If you have a C/C++ compiler, how much faster
  41.    can you get these benchmarks to run? We bet you'll be surprised, 
  42.    especially when you consider that Euphoria runs the benchmarks with
  43.    subscript checking and a host of other run-time checks.
  44.  
  45.  * Read the manual in doc\refman.doc. The simple expressive power of Euphoria
  46.    makes this manual much shorter than manuals for other languages. 
  47.    
  48.  * Try running a Euphoria program with tracing turned on. Add:
  49.         with trace
  50.         trace(1)
  51.    at the beginning of any .ex file.
  52.  
  53.  * Try running a Euphoria program with profiling turned on. You need
  54.    to say "with profile" at the start of the file. The result will be
  55.    in ex.pro. Language Wars (lw.ex) is interesting.
  56.  
  57.  * Try the demo\learn.ex quiz. You may have trouble with this until you know
  58.    more about Euphoria.
  59.  
  60.  * Try modifying some of the demo programs. 
  61.  
  62.    First some simple modifications (takes less than a minute):
  63.  
  64.      What if there were 100 C++ ships in Language Wars? What if sb.ex had to 
  65.      move 1000 tiny balls instead of 50 big ones? Change some parameters in 
  66.      polygon.ex. Can you get prettier pictures to appear? Add some funny 
  67.      phrases to buzz.ex. 
  68.  
  69.    Then, some slightly harder ones (takes a few minutes):
  70.  
  71.      Define a new function of x and y in plot3d.ex.
  72.  
  73.    Then some challenging ones (takes an hour or more):
  74.  
  75.      Add your own customized new command to the editor. Set up your own 
  76.      customized database by defining the fields in mydata.ex. 
  77.  
  78.    Then some major projects (several days or weeks): 
  79.  
  80.      Add SVGA graphics to Language Wars. Try to write a smarter 3D TicTacToe 
  81.      algorithm. Design your own custom GUI library, either in text mode or 
  82.      VGA graphics mode.
  83.  
  84.  * Try writing your own program in Euphoria. A program can be as simple as:
  85.  
  86.        ? 2+2
  87.  
  88.    Remember that after any error you can simply type "ed" to jump into
  89.    the editor at the offending file and line.
  90.  
  91.    You can immediately run a program that you are editing by typing 
  92.    Esc e Enter in the editor. When the program is finished, hit Enter to 
  93.    return to the editor.
  94.  
  95.    Once you get used to it, you'll be developing programs much faster in
  96.    Euphoria than you could in BASIC, Fortran, Pascal, C/C++ or any other
  97.    language that we are aware of.
  98.  
  99.